..\Safe\Tool\hex2bin_tool\hex2bin.exe -e .bin ..\Bin\CHAMELEON_ECU_CRC.hex

set dir_path= %~dp0

@echo off
::获取日期 将格式设置为：20110820
set datevar=%date:~2,2%%date:~5,2%%date:~8,2%_
::获取时间中的小时 将格式设置为：24小时制
set timevar=%time:~0,2%
if /i %timevar% LSS 10 (
set timevar=0%time:~1,1%
)
::获取时间中的分、秒 将格式设置为：3220 ，表示 32分20秒
set timevar=%timevar%%time:~3,2%%time:~6,2%
@echo %datevar%%timevar%

copy ..\Bin\CHAMELEON_ECU_CRC.hex ..\Bin\CHAMELEON_ECU_CRC_Vx.x.x.x.hex
::copy ..\Bin\CHAMELEON_ECU_CRC.hex ..\Bin\CHAMELEON_ECU_CRC_%datevar%%timevar%.hex
copy ..\Bin\CHAMELEON_ECU_CRC.bin ..\Bin\CHAMELEONECU_CRC_Vx.x.x.x.bin
::copy ..\Bin\CHAMELEON_ECU_CRC.Vx.x.x.x.bin ..\Bin\CHAMELEON_ECU_CRC_%datevar%%timevar%_Vx.x.x.x.bin

exit

